package ink.lovejinhu.leetcodeMatch;

public class Face2021071101 {
    /**
     * URL化
     *
     * @param S
     * @param length
     * @return
     */
    public String replaceSpaces(String S, int length) {
        String temp = S.substring(0, length );
        return temp.replaceAll(" ", "%20");

    }
}
